/**
 */
package com.dingpeikeji.quickdeer.core.modules.buse.entity;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 巴士管理Entity
 * @author Zhaoy
 * @version 2016-05-26
 */
public class TBuseExchge extends DataEntity<TBuseExchge> {
	
	private static final long serialVersionUID = 1L;
	private String busdrvid;		// busdrvid
	private TCompBuse busid;		// busid 父类
	private String drvssysid;		// drvssysid
	private String type;		// type
	
	public TBuseExchge() {
		super();
	}

	public TBuseExchge(String id){
		super(id);
	}

	public TBuseExchge(TCompBuse busid){
		this.busid = busid;
	}

	public String getBusdrvid() {
		return busdrvid;
	}

	public void setBusdrvid(String busdrvid) {
		this.busdrvid = busdrvid;
	}
	
	@Length(min=1, max=200, message="busid长度必须介于 1 和 200 之间")
	public TCompBuse getBusid() {
		return busid;
	}

	public void setBusid(TCompBuse busid) {
		this.busid = busid;
	}
	
	@Length(min=1, max=200, message="drvssysid长度必须介于 1 和 200 之间")
	public String getDrvssysid() {
		return drvssysid;
	}

	public void setDrvssysid(String drvssysid) {
		this.drvssysid = drvssysid;
	}
	
	@Length(min=0, max=10, message="type长度必须介于 0 和 10 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
}
